
ac.skill('无敌斩'){
    temp = '攻击触发',
    model1 = [[units\demon\HeroChaosBladeMaster\HeroChaosBladeMaster.mdl]],
    model2 = [[Abilities\Weapons\PhoenixMissile\Phoenix_Missile_mini.mdl]],
    model3 = [[66.mdl]],
    on_run = function(self,hero,target)
        local num = 5
        local damage = self:dmg_get()
        local effect = hero:create_shadow(hero)
        effect:set_model('hero_5.mdl')
        effect:set_speed(2)
        effect:add_attach(self.model2)
        ac.loop(300,function(t)
            local unit = target
            local point = target:get_point()
            local angle = math.random(360)
            local last = point - {angle,150}
            effect:set_point(last)
            effect:set_facing(angle + 180)
            effect:play_animation('attack slam')
            
            -- local shadow = hero:create_shadow(last,angle + 180,0.5)
            -- shadow:play_animation('attack slam')
            unit:get_point():effect
            {
                model = self.model3,
                size = 0.8,
                time = 0.2,
            }
            ac.wait(200,function()
                hero:create_damage(unit,damage,self)
            end)
            num = num - 1
            if num<=0 then
                effect:lifespan(0.5)
                t:remove()
                return
            end
            target = ac.selector('unit'):range(target,600):enemy(hero):random()
            if target==nil then
                effect:lifespan(0.5)
                t:remove()
            end
        end):on_timer()
    end,
}